<?xml version="1.0" encoding="UTF-8"?>
<!--
To change this template, choose Tools | Templates
and open the template in the editor.
-->
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:p="http://primefaces.org/ui"
      xmlns:c="http://java.sun.com/jsp/jstl/core">   
      
    <f:view locale="#{localeBean.locale}">
        
    <h:head>
        <title>Assistente Digital</title>
    </h:head>
    <h:body>
        <link rel="stylesheet" type="text/css" href="../css/stylesheet.css" />
        <div align="center" style="margin:0px;">
           <p:panel id="layoutPrincipal" style="border-radius:10px; box-shadow: rgba(0,0,0,0.4) 10px 10px; 
                         border: 1px solid blueviolet; width: 1055px">
            <p:messages id="msgs"/>   
            <h:form id="menu1">
              <h:panelGrid columns="1" title="cabecalho" columnClasses="alignCenter">
                  
                <h:panelGrid columns="1" columnClasses="col30Left,alignLeft" styleClass="tabelaRich">
                                <h:graphicImage id="imagemSistema" height="40" value="../recursos/imagens/home.png" />
                </h:panelGrid>
                  
                <h:panelGrid columns="2" columnClasses="col30Left,alignCenter" styleClass="tabelaRich">
                    <h:outputText value="#{msgs['principal.titulo']}" styleClass="titulos" style="line-height: 25px" />
                </h:panelGrid>
                  
                  <h:panelGrid columns="3" columnClasses="col30Left,alignRight" styleClass="tabelaRich" >
                      <h:commandLink action="cadastrarUsuario" value="#{msgs['cadastro.cadastro']}" styleClass="hiperlink"/>
                  </h:panelGrid>
                  
                <h:panelGrid columns="3" width="200" columnClasses="alignRight" >
                    <h:outputText value="#{msgs['header.escolhaIdioma']}" styleClass="labels" />
                        <p:selectOneMenu value="#{localeBean.locale}"
                                         valueChangeListener="#{localeBean.changeLocale}"
                                         onchange="this.form.submit()">
                                         <f:selectItems value="#{localeBean.localeList}" />
                        </p:selectOneMenu>
                </h:panelGrid>
                  
                </h:panelGrid>
            </h:form>
            
            <h:form id="menu2">
                <h:panelGrid title="funcionalidades" columns="1" columnClasses="alignCenter">
                    
                    <h:panelGrid columns="1" columnClasses="col30Left,alignLeft" styleClass="tabelaRich">
                        <h:outputLabel styleClass="labels" for="protocolo" value="#{msgs['cliente.consultaProtocolo']}" />  
                            <p:inputText id="protocolo" value="#{VisitanteBean.protocolo}" required="true" 
                                         requiredMessage="#{msgs['visitante.protocoloRequired']}"
                                         validatorMessage="#{msgs['visitante.protocoloErrado']}">
                                <f:validateLength minimum="1" maximum="99999" for="protocolo"/>
                            </p:inputText>
                            <p:message for="protocolo" display="icon"/>  
                    </h:panelGrid>
                    
                    <h:panelGrid columns="2" columnClasses="col30Left,alignRight" styleClass="tabelaRich">
                        <h:commandLink action="consultaGeral" value="#{msgs['visitante.consultaGeral']}" styleClass="hiperlink"/>
                    </h:panelGrid>
                    
                    <h:panelGrid columns="3" columnClasses="col30Left,alignRight" styleClass="tabelaRich">
                        <h:commandLink action="verEstatistica" value="#{msgs['visitante.visualizaEstatistica']}" styleClass="hiperlink"/>
                    </h:panelGrid>
                    
                </h:panelGrid>   
                
            </h:form>
            
            <h:panelGrid columns="1" title="mapa" columnClasses="alignCenter">
                <ui:insert name="body" />
                
            </h:panelGrid>
            
            <h:panelGrid columns="1" title="rodape" columnClasses="alignCenter">
                <f:facet name="footer">  
                    <h:outputLabel styleClass="labels" for="rodape" value="Copyright 2013 - SI UFG" style="opacity: " />  
                </f:facet> 
            </h:panelGrid>
            
           </p:panel>
        </div>
    </h:body>
  </f:view>
</html>
